﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MenuTemplate.aspx.cs" Inherits="GMAC.ReportingSystem.MenuTemplate"
    Theme="Theme" EnableTheming="true" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Untitled Page</title>
    <%--<script type="text/javascript">
        function Exit()
        {
            window.parent.location = "../Exit.aspx";
        }
    </script>--%>
</head>
<body class="TotalBody" style="background-color: #f5f5f5; margin: 0; padding: 0">
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="Contenedor">
        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
            <tr>
                <td class="TDSeparadorV">
                </td>
            </tr>
            <tr>
                <td class="TDSeparadorV">
                </td>
            </tr>
            
            <tr>
                <td style="text-align: left; padding-left: 10px; padding-right: 10px; width: 210px">
                    <cc1:Accordion ID="Accordion1" runat="server" SelectedIndex="5" FadeTransitions="true"
                        FramesPerSecond="40" TransitionDuration="250" AutoSize="None" RequireOpenedPane="false"
                        SuppressHeaderPostbacks="true" Width="200px" Style="cursor: pointer; cursor: hand">
                        <HeaderTemplate>
                            <table style="width: 200px" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td class="MenuBackground" style="text-align: left; padding-left: 5px">
                                        <span class="FontArialBoldCaps" style="font-size: 12px">
                                            <%# Eval("Name") %></span>
                                    </td>
                                </tr>
                            </table>
                        </HeaderTemplate>
                        <ContentTemplate>
                            <table border="0" cellpadding="0" cellspacing="0" style="width: 200px; text-align: left">
                                <tr>
                                    <td style="width: 200px" class="SubMenuBackground">
                                        <table border="0" cellpadding="0" cellspacing="0">
                                            <asp:Repeater ID="contentMenu" runat="server" DataSource='<%#Eval("SubMenus")%>'>
                                                <ItemTemplate>
                                                    <tr>
                                                        <td id="Label5" style="padding-left: 15px; width: 100%">
                                                            <a href='<%# String.Format("Paginas/{0}", Eval("URL")) %>' target="main"><span class="FontVerdanaBoldCaps"
                                                                style="font-size: 10px">
                                                                <%# Eval("Name") %></span></a>
                                                        </td>
                                                    </tr>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </ContentTemplate>
                    </cc1:Accordion>
                </td>
            </tr>
            <tr>
                <td style="text-align: left; padding-left: 10px; padding-right: 10px; width: 210px">
                    <table style="width: 200px" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td class="MenuBackground" style="text-align: left; padding-left: 5px">
                                <asp:LinkButton ID="lnkExit" runat="server" CssClass="FontArialBoldCaps" Style="font-size: 12px"
                                    Text="EXIT" OnClick="lnkExit_Click"></asp:LinkButton>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <div style="width: 1px; height: 100%; right: 0; top: 0; position: absolute; background-color: #d3d5d4">
    </div>
    </form>
</body>
</html>
